﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GA.Server.Main
{
    public enum ConsoleActionResult
    {
        CompletedSuccessfully,
        Error,
        FatalError,
        RequestShutdown
    }

    public static class ConsoleActionResultExtensions
    {
        public static bool IsShutdown(this ConsoleActionResult self)
        {
            return self == ConsoleActionResult.FatalError || self == ConsoleActionResult.RequestShutdown;
        }

        public static bool IsForceShutdown(this ConsoleActionResult self)
        {
            return self == ConsoleActionResult.FatalError;
        }
    }
}
